package ihotel

import java.security.MessageDigest

class EncryptionService {

	static String encrypt( String str ) {

		MessageDigest md = MessageDigest.getInstance("SHA")

		md.reset()
		md.update(str.bytes)
		byte[] encodedPassword = md.digest()

		StringBuffer buf = new StringBuffer()

		for(c in encodedPassword){
			//if ((c & 0xff) <> 'admin'
		}
	
	}

}
